package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentRepeaterLogMapper;
import com.ruoyi.student.domain.StudentRepeaterLog;
import com.ruoyi.student.service.IStudentRepeaterLogService;

/**
 * 重点关注Service业务层处理
 * 
 * @author curly
 * @date 2022-12-26
 */
@Service
public class StudentRepeaterLogServiceImpl implements IStudentRepeaterLogService 
{
    @Autowired
    private StudentRepeaterLogMapper studentRepeaterLogMapper;

    /**
     * 查询重点关注
     * 
     * @param id 重点关注主键
     * @return 重点关注
     */
    @Override
    public StudentRepeaterLog selectStudentRepeaterLogById(Long id)
    {
        return studentRepeaterLogMapper.selectStudentRepeaterLogById(id);
    }

    /**
     * 查询重点关注列表
     * 
     * @param studentRepeaterLog 重点关注
     * @return 重点关注
     */
    @Override
    public List<StudentRepeaterLog> selectStudentRepeaterLogList(StudentRepeaterLog studentRepeaterLog)
    {
        return studentRepeaterLogMapper.selectStudentRepeaterLogList(studentRepeaterLog);
    }

    /**
     * 新增重点关注
     * 
     * @param studentRepeaterLog 重点关注
     * @return 结果
     */
    @Override
    public int insertStudentRepeaterLog(StudentRepeaterLog studentRepeaterLog)
    {
        return studentRepeaterLogMapper.insertStudentRepeaterLog(studentRepeaterLog);
    }

    /**
     * 修改重点关注
     * 
     * @param studentRepeaterLog 重点关注
     * @return 结果
     */
    @Override
    public int updateStudentRepeaterLog(StudentRepeaterLog studentRepeaterLog)
    {
        return studentRepeaterLogMapper.updateStudentRepeaterLog(studentRepeaterLog);
    }

    /**
     * 批量删除重点关注
     * 
     * @param ids 需要删除的重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentRepeaterLogByIds(Long[] ids)
    {
        return studentRepeaterLogMapper.deleteStudentRepeaterLogByIds(ids);
    }

    /**
     * 删除重点关注信息
     * 
     * @param id 重点关注主键
     * @return 结果
     */
    @Override
    public int deleteStudentRepeaterLogById(Long id)
    {
        return studentRepeaterLogMapper.deleteStudentRepeaterLogById(id);
    }
}
